package service;

import entity.Ticket;
import entity.Train;
import entity.User;
import untils.Msg;

import java.util.ArrayList;

public interface BaseService {

    //用户登录
    public Msg<User> Login(String phone, String pwd);

    public Msg<User> register(User user);

    Msg<User> updatePersonalData(Integer  id, String username,String password,String real_name,String phone,String email);


    Msg<ArrayList<Train>> findAllTrainData();

    public ArrayList<User> SelectUser(int userId);
    public Train selectTrain();
}
